package com.hongyuan.sellfitness.ui.home.beans;

import com.hongyuan.sellfitness.utils.TimeUtil;

import java.util.List;

public class PriviteLessonBean {

    private List<ListBean> list;

    public List<ListBean> getList() {
        return list;
    }

    public void setList(List<ListBean> list) {
        this.list = list;
    }

    public static class ListBean {
        /**
         * my_course_id : 44
         * m_id : 3
         * os_id : 18
         * jl_mid : 3
         * have_num : 3
         * cp_id : 180
         * ocp_id : 0
         * ocp_num : 0
         * one_money : 0.00
         * all_money : 0.00
         * state : 1
         * cp_img : http://hongyuangood.oss-cn-hangzhou.aliyuncs.com/uplaod/image/20200519/9dbf5eb702487757d83472e480339e9bb1b92994_1024x1866.jpeg
         * os_n : 1
         * cp_name : 测试
         * mi_realname : 陈道明
         * coach_nickname : 小明
         * coach_head : http://hongyuangood.oss-cn-hangzhou.aliyuncs.com/uplaod/image/20190722/3749235a38c65966c07dbcc49d7855af6c726aff_800x600.jpg
         * os_name : 首玺健身汎港店
         * bnum : 0
         * cnum : 19
         * last_kong_date : 2020-10-14 12:00
         */

        private int my_course_id;
        private int m_id;
        private int os_id;
        private int jl_mid;
        private int have_num;
        private int cp_id;
        private int ocp_id;
        private int ocp_num;
        private String one_money;
        private String all_money;
        private int state;
        private String cp_img;
        private int os_n;
        private String cp_name;
        private String mi_realname;
        private String coach_nickname;
        private String coach_head;
        private String os_name;
        private int bnum;
        private int cnum;
        private String last_kong_date;

        public int getMy_course_id() {
            return my_course_id;
        }

        public void setMy_course_id(int my_course_id) {
            this.my_course_id = my_course_id;
        }

        public int getM_id() {
            return m_id;
        }

        public void setM_id(int m_id) {
            this.m_id = m_id;
        }

        public int getOs_id() {
            return os_id;
        }

        public void setOs_id(int os_id) {
            this.os_id = os_id;
        }

        public int getJl_mid() {
            return jl_mid;
        }

        public void setJl_mid(int jl_mid) {
            this.jl_mid = jl_mid;
        }

        public int getHave_num() {
            return have_num;
        }

        public void setHave_num(int have_num) {
            this.have_num = have_num;
        }

        public int getCp_id() {
            return cp_id;
        }

        public void setCp_id(int cp_id) {
            this.cp_id = cp_id;
        }

        public int getOcp_id() {
            return ocp_id;
        }

        public void setOcp_id(int ocp_id) {
            this.ocp_id = ocp_id;
        }

        public int getOcp_num() {
            return ocp_num;
        }

        public void setOcp_num(int ocp_num) {
            this.ocp_num = ocp_num;
        }

        public String getOne_money() {
            return one_money;
        }

        public void setOne_money(String one_money) {
            this.one_money = one_money;
        }

        public String getAll_money() {
            return all_money;
        }

        public void setAll_money(String all_money) {
            this.all_money = all_money;
        }

        public int getState() {
            return state;
        }

        public void setState(int state) {
            this.state = state;
        }

        public String getCp_img() {
            return cp_img;
        }

        public void setCp_img(String cp_img) {
            this.cp_img = cp_img;
        }

        public int getOs_n() {
            return os_n;
        }

        public void setOs_n(int os_n) {
            this.os_n = os_n;
        }

        public String getCp_name() {
            return cp_name;
        }

        public void setCp_name(String cp_name) {
            this.cp_name = cp_name;
        }

        public String getMi_realname() {
            return mi_realname;
        }

        public void setMi_realname(String mi_realname) {
            this.mi_realname = mi_realname;
        }

        public String getCoach_nickname() {
            return coach_nickname;
        }

        public void setCoach_nickname(String coach_nickname) {
            this.coach_nickname = coach_nickname;
        }

        public String getCoach_head() {
            return coach_head;
        }

        public void setCoach_head(String coach_head) {
            this.coach_head = coach_head;
        }

        public String getOs_name() {
            return os_name;
        }

        public void setOs_name(String os_name) {
            this.os_name = os_name;
        }

        public int getBnum() {
            return bnum;
        }

        public void setBnum(int bnum) {
            this.bnum = bnum;
        }

        public int getCnum() {
            return cnum;
        }

        public void setCnum(int cnum) {
            this.cnum = cnum;
        }

        public String getLast_kong_date() {
            return last_kong_date;
        }

        public void setLast_kong_date(String last_kong_date) {
            this.last_kong_date = last_kong_date;
        }

        /*
         * 课程开始时间处理
         * */
        public String getShowTime(){
            String showText;
            if(TimeUtil.isToday(last_kong_date, TimeUtil.dateFormat)){
                showText = "可约时间：今天 "+TimeUtil.formatDate(last_kong_date,TimeUtil.dateFormat,TimeUtil.dateFormatHM);
            }else{
                showText = "可约时间："+TimeUtil.formatDate(last_kong_date,TimeUtil.dateFormat,TimeUtil.dateFormat);
            }
            return showText;
        }

        /*
        * showCoashName
        * */
        public String coashName(){
            return "教练："+coach_nickname+"/"+os_name;
        }

        public String getStrHave_num() {
            return have_num+"";
        }

        public String getStrOcp_num() {
            return bnum+"";
        }
    }
}
